import { defineStore } from '@/pinia';

const useCounterStore = defineStore('counter', {
  state: () => ({
    count: 0
  }),
  actions: {
    plusAsync(num) {
      setTimeout(() => {
        this.count += num;
      }, 1000);
    }
  }
});

export default useCounterStore;
